package com.fsz.pachong.pachong.service.impl;
import com.fsz.pachong.pachong.dao.RecordDao;
import com.fsz.pachong.pachong.entity.Record;
import com.fsz.pachong.pachong.service.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class RecordServiceImpl implements RecordService {

	@Autowired
	private RecordDao recordDao;
	
	@Override
	public Record get(Long movieId){
		return recordDao.get(movieId);
	}
	
	@Override
	public List<Record> list(Map<String, Object> map){
		return recordDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return recordDao.count(map);
	}
	
	@Override
	public int save(Record record){
		return recordDao.save(record);
	}
	
	@Override
	public int update(Record movie){
		return recordDao.update(movie);
	}
	
	@Override
	public int remove(Integer movieId){
		return recordDao.remove(movieId);
	}
	
	@Override
	public int batchRemove(Integer[] movieIds){
		return recordDao.batchRemove(movieIds);
	}

	@Override
	public Record getByName(Record movie) {
		// TODO Auto-generated method stub
		return recordDao.getByName(movie);
	}
	
}
